﻿//Created by Action Script Viewer - http://www.buraks.com/asv
package net.wooga.pets.views.components {
    import reprise.ui.*;
    import flash.events.*;
    import reprise.controls.*;
    import net.wooga.pets.utils.*;

    public class GameViewOptionsMenu extends UIComponent {

        private var _zoomInButton:SimpleButton;
        private var _zoomOutButton:SimpleButton;
        private var _facadeButton:SimpleButton;
        private var _menuBackground:UIComponent;
        private var _soundEffectsButton:SimpleButton;
        private var _optionsButton:SimpleButton;
        private var _musicButton:SimpleButton;

        public function toggleFacadeButton(_arg1:Boolean):void{
            if (_arg1 != this._facadeButton.selected){
                this._facadeButton.selected = !(this._facadeButton.selected);
            };
        }
        public function get zoomInButton():SimpleButton{
            return (this._zoomInButton);
        }
        public function get zoomOutButton():SimpleButton{
            return (this._zoomOutButton);
        }
        public function get facadeButton():SimpleButton{
            return (this._facadeButton);
        }
        public function get soundEffectsButton():SimpleButton{
            return (this._soundEffectsButton);
        }
        public function get musicButton():SimpleButton{
            return (this._musicButton);
        }
        public function set musicButton(_arg1:SimpleButton):void{
            this._musicButton = _arg1;
        }
        override protected function initialize():void{
            super.initialize();
            cssID = "gameViewOptionsMenu";
        }
        override protected function createChildren():void{
            this._menuBackground = RepriseUtils.addComponent(this, "menuBackground");
            this._optionsButton = RepriseUtils.addSimpleButton(this._menuBackground, "optionsButton", this.optionsButton_click);
            this._soundEffectsButton = RepriseUtils.addSimpleButton(this._menuBackground, "toggleButton soundButton");
            this._musicButton = RepriseUtils.addSimpleButton(this._menuBackground, "toggleButton musicButton");
            this._facadeButton = RepriseUtils.addSimpleButton(this._menuBackground, "toggleButton facadeButton");
            this._soundEffectsButton.isToggleButton = (this._facadeButton.isToggleButton = (this._musicButton.isToggleButton = true));
            this._zoomInButton = SimpleButton(addComponent("zoomButton zoomInButton", null, SimpleButton));
            this._zoomOutButton = SimpleButton(addComponent("zoomButton zoomOutButton", null, SimpleButton));
        }
        private function optionsButton_click(_arg1:MouseEvent):void{
            if (this._menuBackground.hasCSSClass("open")){
                this._menuBackground.removeCSSClass("open");
            } else {
                this._menuBackground.addCSSClass("open");
            };
        }

    }
}//package net.wooga.pets.views.components 
